import core.CodeGeneration;
import entity.Field;
import entity.Struct;
import entity.StructTemplate;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) throws Exception {
        Struct inReqEntity = new Struct();
        inReqEntity.setStructName("asgfas");
        List<Field> fieldList = new ArrayList<Field>();
        fieldList.add(new Field("info", "c_int_p"));
        inReqEntity.setList(fieldList);
        List<Struct> list = new ArrayList<Struct>();
        list.add(inReqEntity);
        list.add(inReqEntity);
        StructTemplate data = new StructTemplate(list);
        CodeGeneration.createSourceCode(data, "struct.vm", "test.py");
    }
}
